<?php
//dezend by http://www.yunlu99.com/ QQ:270656184
defined('BASEPATH') || exit('No direct script access allowed');

if (!function_exists('domain')) {
	function domain($s)
	{
		if (preg_match('/^([a-zA-z]+:\\/\\/)([^\\s^\\/]*)\\/?$/', $s, $arr)) {
			return $arr[2];
		}
	}
}

?>
